package com.fairyzww.cloud.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UserLoginExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UserLoginExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andLoginIdIsNull() {
            addCriterion("login_id is null");
            return (Criteria) this;
        }

        public Criteria andLoginIdIsNotNull() {
            addCriterion("login_id is not null");
            return (Criteria) this;
        }

        public Criteria andLoginIdEqualTo(Integer value) {
            addCriterion("login_id =", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdNotEqualTo(Integer value) {
            addCriterion("login_id <>", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdGreaterThan(Integer value) {
            addCriterion("login_id >", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("login_id >=", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdLessThan(Integer value) {
            addCriterion("login_id <", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdLessThanOrEqualTo(Integer value) {
            addCriterion("login_id <=", value, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdIn(List<Integer> values) {
            addCriterion("login_id in", values, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdNotIn(List<Integer> values) {
            addCriterion("login_id not in", values, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdBetween(Integer value1, Integer value2) {
            addCriterion("login_id between", value1, value2, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginIdNotBetween(Integer value1, Integer value2) {
            addCriterion("login_id not between", value1, value2, "loginId");
            return (Criteria) this;
        }

        public Criteria andLoginAccountIsNull() {
            addCriterion("login_account is null");
            return (Criteria) this;
        }

        public Criteria andLoginAccountIsNotNull() {
            addCriterion("login_account is not null");
            return (Criteria) this;
        }

        public Criteria andLoginAccountEqualTo(String value) {
            addCriterion("login_account =", value, "loginAccount");
            return (Criteria) this;
        }

        public Criteria andLoginAccountNotEqualTo(String value) {
            addCriterion("login_account <>", value, "loginAccount");
            return (Criteria) this;
        }

        public Criteria andLoginAccountGreaterThan(String value) {
            addCriterion("login_account >", value, "loginAccount");
            return (Criteria) this;
        }

        public Criteria andLoginAccountGreaterThanOrEqualTo(String value) {
            addCriterion("login_account >=", value, "loginAccount");
            return (Criteria) this;
        }

        public Criteria andLoginAccountLessThan(String value) {
            addCriterion("login_account <", value, "loginAccount");
            return (Criteria) this;
        }

        public Criteria andLoginAccountLessThanOrEqualTo(String value) {
            addCriterion("login_account <=", value, "loginAccount");
            return (Criteria) this;
        }

        public Criteria andLoginAccountLike(String value) {
            addCriterion("login_account like", value, "loginAccount");
            return (Criteria) this;
        }

        public Criteria andLoginAccountNotLike(String value) {
            addCriterion("login_account not like", value, "loginAccount");
            return (Criteria) this;
        }

        public Criteria andLoginAccountIn(List<String> values) {
            addCriterion("login_account in", values, "loginAccount");
            return (Criteria) this;
        }

        public Criteria andLoginAccountNotIn(List<String> values) {
            addCriterion("login_account not in", values, "loginAccount");
            return (Criteria) this;
        }

        public Criteria andLoginAccountBetween(String value1, String value2) {
            addCriterion("login_account between", value1, value2, "loginAccount");
            return (Criteria) this;
        }

        public Criteria andLoginAccountNotBetween(String value1, String value2) {
            addCriterion("login_account not between", value1, value2, "loginAccount");
            return (Criteria) this;
        }

        public Criteria andPasswordIsNull() {
            addCriterion("password is null");
            return (Criteria) this;
        }

        public Criteria andPasswordIsNotNull() {
            addCriterion("password is not null");
            return (Criteria) this;
        }

        public Criteria andPasswordEqualTo(String value) {
            addCriterion("password =", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotEqualTo(String value) {
            addCriterion("password <>", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordGreaterThan(String value) {
            addCriterion("password >", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("password >=", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordLessThan(String value) {
            addCriterion("password <", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordLessThanOrEqualTo(String value) {
            addCriterion("password <=", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordLike(String value) {
            addCriterion("password like", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotLike(String value) {
            addCriterion("password not like", value, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordIn(List<String> values) {
            addCriterion("password in", values, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotIn(List<String> values) {
            addCriterion("password not in", values, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordBetween(String value1, String value2) {
            addCriterion("password between", value1, value2, "password");
            return (Criteria) this;
        }

        public Criteria andPasswordNotBetween(String value1, String value2) {
            addCriterion("password not between", value1, value2, "password");
            return (Criteria) this;
        }

        public Criteria andCreateIpIsNull() {
            addCriterion("create_ip is null");
            return (Criteria) this;
        }

        public Criteria andCreateIpIsNotNull() {
            addCriterion("create_ip is not null");
            return (Criteria) this;
        }

        public Criteria andCreateIpEqualTo(String value) {
            addCriterion("create_ip =", value, "createIp");
            return (Criteria) this;
        }

        public Criteria andCreateIpNotEqualTo(String value) {
            addCriterion("create_ip <>", value, "createIp");
            return (Criteria) this;
        }

        public Criteria andCreateIpGreaterThan(String value) {
            addCriterion("create_ip >", value, "createIp");
            return (Criteria) this;
        }

        public Criteria andCreateIpGreaterThanOrEqualTo(String value) {
            addCriterion("create_ip >=", value, "createIp");
            return (Criteria) this;
        }

        public Criteria andCreateIpLessThan(String value) {
            addCriterion("create_ip <", value, "createIp");
            return (Criteria) this;
        }

        public Criteria andCreateIpLessThanOrEqualTo(String value) {
            addCriterion("create_ip <=", value, "createIp");
            return (Criteria) this;
        }

        public Criteria andCreateIpLike(String value) {
            addCriterion("create_ip like", value, "createIp");
            return (Criteria) this;
        }

        public Criteria andCreateIpNotLike(String value) {
            addCriterion("create_ip not like", value, "createIp");
            return (Criteria) this;
        }

        public Criteria andCreateIpIn(List<String> values) {
            addCriterion("create_ip in", values, "createIp");
            return (Criteria) this;
        }

        public Criteria andCreateIpNotIn(List<String> values) {
            addCriterion("create_ip not in", values, "createIp");
            return (Criteria) this;
        }

        public Criteria andCreateIpBetween(String value1, String value2) {
            addCriterion("create_ip between", value1, value2, "createIp");
            return (Criteria) this;
        }

        public Criteria andCreateIpNotBetween(String value1, String value2) {
            addCriterion("create_ip not between", value1, value2, "createIp");
            return (Criteria) this;
        }

        public Criteria andLatestLoginDatetimeIsNull() {
            addCriterion("latest_login_datetime is null");
            return (Criteria) this;
        }

        public Criteria andLatestLoginDatetimeIsNotNull() {
            addCriterion("latest_login_datetime is not null");
            return (Criteria) this;
        }

        public Criteria andLatestLoginDatetimeEqualTo(Date value) {
            addCriterion("latest_login_datetime =", value, "latestLoginDatetime");
            return (Criteria) this;
        }

        public Criteria andLatestLoginDatetimeNotEqualTo(Date value) {
            addCriterion("latest_login_datetime <>", value, "latestLoginDatetime");
            return (Criteria) this;
        }

        public Criteria andLatestLoginDatetimeGreaterThan(Date value) {
            addCriterion("latest_login_datetime >", value, "latestLoginDatetime");
            return (Criteria) this;
        }

        public Criteria andLatestLoginDatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("latest_login_datetime >=", value, "latestLoginDatetime");
            return (Criteria) this;
        }

        public Criteria andLatestLoginDatetimeLessThan(Date value) {
            addCriterion("latest_login_datetime <", value, "latestLoginDatetime");
            return (Criteria) this;
        }

        public Criteria andLatestLoginDatetimeLessThanOrEqualTo(Date value) {
            addCriterion("latest_login_datetime <=", value, "latestLoginDatetime");
            return (Criteria) this;
        }

        public Criteria andLatestLoginDatetimeIn(List<Date> values) {
            addCriterion("latest_login_datetime in", values, "latestLoginDatetime");
            return (Criteria) this;
        }

        public Criteria andLatestLoginDatetimeNotIn(List<Date> values) {
            addCriterion("latest_login_datetime not in", values, "latestLoginDatetime");
            return (Criteria) this;
        }

        public Criteria andLatestLoginDatetimeBetween(Date value1, Date value2) {
            addCriterion("latest_login_datetime between", value1, value2, "latestLoginDatetime");
            return (Criteria) this;
        }

        public Criteria andLatestLoginDatetimeNotBetween(Date value1, Date value2) {
            addCriterion("latest_login_datetime not between", value1, value2, "latestLoginDatetime");
            return (Criteria) this;
        }

        public Criteria andLatestLoginIpIsNull() {
            addCriterion("latest_login_ip is null");
            return (Criteria) this;
        }

        public Criteria andLatestLoginIpIsNotNull() {
            addCriterion("latest_login_ip is not null");
            return (Criteria) this;
        }

        public Criteria andLatestLoginIpEqualTo(String value) {
            addCriterion("latest_login_ip =", value, "latestLoginIp");
            return (Criteria) this;
        }

        public Criteria andLatestLoginIpNotEqualTo(String value) {
            addCriterion("latest_login_ip <>", value, "latestLoginIp");
            return (Criteria) this;
        }

        public Criteria andLatestLoginIpGreaterThan(String value) {
            addCriterion("latest_login_ip >", value, "latestLoginIp");
            return (Criteria) this;
        }

        public Criteria andLatestLoginIpGreaterThanOrEqualTo(String value) {
            addCriterion("latest_login_ip >=", value, "latestLoginIp");
            return (Criteria) this;
        }

        public Criteria andLatestLoginIpLessThan(String value) {
            addCriterion("latest_login_ip <", value, "latestLoginIp");
            return (Criteria) this;
        }

        public Criteria andLatestLoginIpLessThanOrEqualTo(String value) {
            addCriterion("latest_login_ip <=", value, "latestLoginIp");
            return (Criteria) this;
        }

        public Criteria andLatestLoginIpLike(String value) {
            addCriterion("latest_login_ip like", value, "latestLoginIp");
            return (Criteria) this;
        }

        public Criteria andLatestLoginIpNotLike(String value) {
            addCriterion("latest_login_ip not like", value, "latestLoginIp");
            return (Criteria) this;
        }

        public Criteria andLatestLoginIpIn(List<String> values) {
            addCriterion("latest_login_ip in", values, "latestLoginIp");
            return (Criteria) this;
        }

        public Criteria andLatestLoginIpNotIn(List<String> values) {
            addCriterion("latest_login_ip not in", values, "latestLoginIp");
            return (Criteria) this;
        }

        public Criteria andLatestLoginIpBetween(String value1, String value2) {
            addCriterion("latest_login_ip between", value1, value2, "latestLoginIp");
            return (Criteria) this;
        }

        public Criteria andLatestLoginIpNotBetween(String value1, String value2) {
            addCriterion("latest_login_ip not between", value1, value2, "latestLoginIp");
            return (Criteria) this;
        }

        public Criteria andIsActiveIsNull() {
            addCriterion("is_active is null");
            return (Criteria) this;
        }

        public Criteria andIsActiveIsNotNull() {
            addCriterion("is_active is not null");
            return (Criteria) this;
        }

        public Criteria andIsActiveEqualTo(Integer value) {
            addCriterion("is_active =", value, "isActive");
            return (Criteria) this;
        }

        public Criteria andIsActiveNotEqualTo(Integer value) {
            addCriterion("is_active <>", value, "isActive");
            return (Criteria) this;
        }

        public Criteria andIsActiveGreaterThan(Integer value) {
            addCriterion("is_active >", value, "isActive");
            return (Criteria) this;
        }

        public Criteria andIsActiveGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_active >=", value, "isActive");
            return (Criteria) this;
        }

        public Criteria andIsActiveLessThan(Integer value) {
            addCriterion("is_active <", value, "isActive");
            return (Criteria) this;
        }

        public Criteria andIsActiveLessThanOrEqualTo(Integer value) {
            addCriterion("is_active <=", value, "isActive");
            return (Criteria) this;
        }

        public Criteria andIsActiveIn(List<Integer> values) {
            addCriterion("is_active in", values, "isActive");
            return (Criteria) this;
        }

        public Criteria andIsActiveNotIn(List<Integer> values) {
            addCriterion("is_active not in", values, "isActive");
            return (Criteria) this;
        }

        public Criteria andIsActiveBetween(Integer value1, Integer value2) {
            addCriterion("is_active between", value1, value2, "isActive");
            return (Criteria) this;
        }

        public Criteria andIsActiveNotBetween(Integer value1, Integer value2) {
            addCriterion("is_active not between", value1, value2, "isActive");
            return (Criteria) this;
        }

        public Criteria andLoginCreateIsNull() {
            addCriterion("login_create is null");
            return (Criteria) this;
        }

        public Criteria andLoginCreateIsNotNull() {
            addCriterion("login_create is not null");
            return (Criteria) this;
        }

        public Criteria andLoginCreateEqualTo(Date value) {
            addCriterion("login_create =", value, "loginCreate");
            return (Criteria) this;
        }

        public Criteria andLoginCreateNotEqualTo(Date value) {
            addCriterion("login_create <>", value, "loginCreate");
            return (Criteria) this;
        }

        public Criteria andLoginCreateGreaterThan(Date value) {
            addCriterion("login_create >", value, "loginCreate");
            return (Criteria) this;
        }

        public Criteria andLoginCreateGreaterThanOrEqualTo(Date value) {
            addCriterion("login_create >=", value, "loginCreate");
            return (Criteria) this;
        }

        public Criteria andLoginCreateLessThan(Date value) {
            addCriterion("login_create <", value, "loginCreate");
            return (Criteria) this;
        }

        public Criteria andLoginCreateLessThanOrEqualTo(Date value) {
            addCriterion("login_create <=", value, "loginCreate");
            return (Criteria) this;
        }

        public Criteria andLoginCreateIn(List<Date> values) {
            addCriterion("login_create in", values, "loginCreate");
            return (Criteria) this;
        }

        public Criteria andLoginCreateNotIn(List<Date> values) {
            addCriterion("login_create not in", values, "loginCreate");
            return (Criteria) this;
        }

        public Criteria andLoginCreateBetween(Date value1, Date value2) {
            addCriterion("login_create between", value1, value2, "loginCreate");
            return (Criteria) this;
        }

        public Criteria andLoginCreateNotBetween(Date value1, Date value2) {
            addCriterion("login_create not between", value1, value2, "loginCreate");
            return (Criteria) this;
        }

        public Criteria andLoginModifyIsNull() {
            addCriterion("login_modify is null");
            return (Criteria) this;
        }

        public Criteria andLoginModifyIsNotNull() {
            addCriterion("login_modify is not null");
            return (Criteria) this;
        }

        public Criteria andLoginModifyEqualTo(Date value) {
            addCriterion("login_modify =", value, "loginModify");
            return (Criteria) this;
        }

        public Criteria andLoginModifyNotEqualTo(Date value) {
            addCriterion("login_modify <>", value, "loginModify");
            return (Criteria) this;
        }

        public Criteria andLoginModifyGreaterThan(Date value) {
            addCriterion("login_modify >", value, "loginModify");
            return (Criteria) this;
        }

        public Criteria andLoginModifyGreaterThanOrEqualTo(Date value) {
            addCriterion("login_modify >=", value, "loginModify");
            return (Criteria) this;
        }

        public Criteria andLoginModifyLessThan(Date value) {
            addCriterion("login_modify <", value, "loginModify");
            return (Criteria) this;
        }

        public Criteria andLoginModifyLessThanOrEqualTo(Date value) {
            addCriterion("login_modify <=", value, "loginModify");
            return (Criteria) this;
        }

        public Criteria andLoginModifyIn(List<Date> values) {
            addCriterion("login_modify in", values, "loginModify");
            return (Criteria) this;
        }

        public Criteria andLoginModifyNotIn(List<Date> values) {
            addCriterion("login_modify not in", values, "loginModify");
            return (Criteria) this;
        }

        public Criteria andLoginModifyBetween(Date value1, Date value2) {
            addCriterion("login_modify between", value1, value2, "loginModify");
            return (Criteria) this;
        }

        public Criteria andLoginModifyNotBetween(Date value1, Date value2) {
            addCriterion("login_modify not between", value1, value2, "loginModify");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}